<?php
class OsEnvironmentsFForm extends BaseFormAdmin{
	public function configure(){
		$langs = SysLanguages::getAllLang();
		foreach($langs as $lang){
			$this->setWidget('name_'.$lang, new sfWidgetFormInputText(array(), array('class' => 'required hz-required')));
			$this->setValidator('name_'.$lang, new sfValidatorString(array('max_length' => 255, 'required' => false)));
			
			$this->setWidget('description_'.$lang, new sfWidgetFormTextarea());
			$this->setValidator('description_'.$lang, new sfValidatorString(array('required' => false)));
			
		}
		
		parent::configure();
	}
}
